<script type="text/javascript">
//页面加载时执行
$(function(){
	$.get("applicationSingle/getCardInfo",function(data){
		var contentb="<option value='' selected>请选择</option>";
		var contentc="<option value='' selected>请选择</option>";
		var i;
		$(data).each(function(n,item){
			for(i=0;i<item.cdProDefinitions.length;i++){
				
				contentb+="<option value="+item.cdProDefinitions[i].cardpCode+">"
				+item.cdProDefinitions[i].cardpName+"</option>"
			}
			$("#cardCodeByQueryBatchApplication").html(contentb);
		});
	},"json");
	$.post("tellerManage/getpaperAndBranch",function(json){
		 var contentb="<option value='' >请选择</option>";
		 $(json).each(function(n,item){
			for(i=0;i<item.branchs.length;i++){
				contentb+="<option value="+item.branchs[i].orgName+">"
				+item.branchs[i].orgName+"</option>"
			};
			$("select[name='applyDateCollBranch']").html(contentb);
		 });
		
	 },"json")
	$.ajax({
		type: 'POST',
		url:"queryInfo/queryBatchApplication",
		dataType:"json",
		cache: false,
		success: queryBatchApplication,//回调函数
		error: DWZ.ajaxError
	});
	
});
</script>
<div class="pageHeader ">
	<form id="pagerForm" method="post"
		action="queryInfo/queryBatchApplication"
		class="pageForm required-validate"
		onsubmit="return validateCallback(this,queryBatchApplication);">
		<input type="hidden" name="pageNum" value="" /> <input type="hidden"
			name="numPerPage" value="" />
		<!-- <input type="hidden" name="pageCount" value="" /> -->
		<div class="searchBar">
			<!-- <table class="searchContent">
			<tr>
				<td style="text-align:left"><label>卡产品：</label></td>
				<td style="text-align:left"><select id="cardCodeByQueryBatchApplication" name="cardPCode" >
			
				</select></td>
			
				<td style="text-align:left"><label>单位名称：</label></td>
				<td><input  name="corpName" class="" type="text" size="30" /></td>
			</tr>
			<tr>
				<td><label>申领日期(起)：</label></td>
				<td><input  name="applyDateStart" class="date" type="text" size="30"  /></td>
			
				<td><label>申领日期(止)：</label></td>
				<td><input  name="applyDateEnd" class="date" type="text" size="30" /></td>
			</tr>
			<tr>
				<td style="text-align:left"><label>任务状态：</label></td>
				<td style="text-align:left"><select  name="taskStatus" class=""  >
					<option value="" >请选择
					<option value="1">任务生成
					<option value="2">交付银行
					<option value="3">银行返回 
					<option value="4">制卡中
					<option value="5">已制卡
					<option value="6">部分制卡
					<option value="7">已导出制卡文件
				</select></td>
			
				<td style="text-align:left"><label>申领网点：</label></td>
				<td><input  name="applyDateCollBranch" class="" type="text" size="30" /></td>
			</tr>
			<tr>
				<td><label>发卡日期(起)：</label></td>
				<td><input  name="releaseDateStart" class="date" type="text" size="30"  /></td>
			
				<td><label>发卡日期(止)：</label></td>
				<td><input  name="releaseDateEnd" class="date" type="text" size="30" /></td>
			</tr>
			</table> -->
			<div class="row" style="padding: 0 10px;">
				<div class="col-md-4 col-sm-12">
					<p>
						<label>卡产品：</label> <select id="cardCodeByQueryBatchApplication"
							name="cardPCode"></select>
					</p>
				</div>
				<div class="col-md-4 col-sm-12">
					<p>
						<label>单位名称：</label> <input name="corpName" class="" type="text"
							size="20" />
					</p>
				</div>
				<div class="col-md-4 col-sm-12">
					<p>
						<label>申领网点：</label><!-- <input name="applyDateCollBranch" class=""
							type="text" size="20" /> -->
							 <select name="applyDateCollBranch"></select>
					</p>
				</div>
			</div>
			<div class="row" style="padding: 0 10px;">
				<div class="col-md-4 col-sm-12">
					<p>
						<label>任务状态：</label> <select name="taskStatus" class="">
							<option value="">请选择</option>
							<option value="1">任务生成</option>
							<option value="2">交付银行</option>
							<option value="3">银行返回</option>
							<option value="4">制卡中</option>
							<option value="5">已制卡</option>
							<option value="6">部分制卡</option>
							<option value="7">已导出制卡文件</option>
						</select>

					</p>
				</div>
				<div class="col-md-4 col-sm-12">
					<p>
						<label>申请日期(起)：</label><input name="applyDateStart" class="date validDateFrom"
							type="text" size="20" />
					</p>
				</div>
				<div class="col-md-4 col-sm-12">
					<p>
						<label>申请日期(止)：</label><input name="applyDateEnd" class="date validDateTo"
							type="text" size="20" />
					</p>
				</div>
			</div>
			<div class="row" style="padding: 0 10px;">
				<div class="col-md-4 col-sm-12">
					<p>
						<label>发卡日期(起)：</label><input name="releaseDateStart" class="date validDateFrom"
							type="text" size="20" />
					</p>
				</div>
				<div class="col-md-4 col-sm-12">
					<p>
						<label>发卡日期(止)：</label><input name="releaseDateEnd" class="date validDateTo"
							type="text" size="20" />
					</p>
				</div>

			</div>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit" onclick="initCurrentPage()">查询</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>

<form method="post" action="" class="pageForm required-validate"
	onsubmit="return validateCallback(this,refresh);">
	<div class="pageContent">
		<div id="ByQueryBatchApp">
			<table class="table" width="100%" layoutH="218">
				<thead>
					<!-- 			/*卡产品、单位名称、申领网点、申领日期、申领数量、任务状态、任务发送日期、返回接收日期、发放日期、发卡柜员*/-->
					<tr align="center">
						<th width="8%">卡产品</th>
						<th width="14%">单位名称</th>
						<th width="12%">申领网点</th>
						<th width="10%">申请日期</th>
						<th width="8%">申请数量</th>
						<th width="8%">任务状态</th>
						<th width="10%">任务发送日期</th>
						<th width="10%">返回接收日期</th>
						<th width="10%">发卡日期</th>
						<th width="10%">发卡柜员</th>
					</tr>
				</thead>
				<tbody id="tbodyByQueryBatchApplication">

				</tbody>
			</table>
		</div>
		<!--  <div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select id="numPerPageByQueryBatchApplication" name="numPerPage" onchange="paging(this,$('#queryBatchApplication'),queryBatchApplication)">
				<option value="20">20</option>
				<option value="30">30</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select>
			<span id="totalCountByQueryBatchApplication" ></span>
		</div>
			<div id="paginationByQueryBatchApplication" class="pagination1"  ></div>
	</div> -->
		<div class="panelBar">
			<div class="pages">
				<span>显示</span> <select class="combox" name="numPerPage"
					onchange="navTabPageBreak({numPerPage:this.value},'tbodyByQueryBatchApplication',queryBatchApplication)">
					<option value="20">20</option>
					<option value="50">50</option>
					<option value="100">100</option>
					<option value="200">200</option>
				</select> <span id="totalCountByQueryBatchApplication">条，共${totalCount}条</span>
			</div>

			<div callback='queryBatchApplication'
				id="paginationByQueryBatchApplication"
				rel="tbodyByQueryBatchApplication" class="pagination"
				targetType="navTab" totalCount="200" numPerPage="5" pageNumShown="5"
				currentPage="1"></div>

		</div>
	</div>
</form>


